home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Palettes / Clocks / AnalogClock.h < prev    next >
Text File  |  1995-06-12  |  2KB  |  51 lines

  1. //----------------------------------------------------------------------------------------------------
  2. //
  3. //    AnalogClock
  4. //
  5. //    Inherits From:        Clock
  6. //
  7. //    Declared In:        AnalogClock.h
  8. //
  9. //    Class Description
  10. //
  11. //        AnalogClock adds behavior required for specific graphical
  12. //        representation.  An AnalogClock is a fixed size view (64 x 64).
  13. //        Clock hand widths and lengths are fixed based on an expected
  14. //        clock face image size (not less than 48 x 48). Date information is
  15. //        not displayed, however, it is accessible.
  16. //
  17. //
  18. //    Disclaimer
  19. //
  20. //        You may freely copy, distribute and reuse this software and its
  21. //        associated documentation. I disclaim any warranty of any kind, 
  22. //        expressed or implied, as to its fitness for any particular use.
  23. //
  24. //----------------------------------------------------------------------------------------------------
  25. #import "Clock.h"
  26.  
  27.  
  28. @interface AnalogClock : Clock
  29. {
  30.     NXColor        hourAndMinuteHandColor;
  31.     NXColor        secondHandColor;
  32. }
  33.  
  34. //----------------------------------------------------------------------------------------------------
  35. //    Accessing Clock Hand Colors
  36. //----------------------------------------------------------------------------------------------------
  37. - hourAndMinuteHandColor: (NXColor) aColor;
  38. - secondHandColor: (NXColor) aColor;
  39.  
  40. - (NXColor) hourAndMinuteHandColor;
  41. - (NXColor) secondHandColor;
  42.  
  43.  
  44. //----------------------------------------------------------------------------------------------------
  45. //    Action Methods
  46. //----------------------------------------------------------------------------------------------------
  47. - takeHourAndMinuteHandColorFrom: sender;
  48. - takeSecondHandColorFrom: sender;
  49.  
  50.  
  51. @end